package com.neusoft.neuiotms.dcvm.dto;

import javax.validation.constraints.NotBlank;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class ModelVO implements IExcelDataModel, IExcelModel {

    /** 模具名 */
    @Excel(name = "模具", orderNum = "0")
    @NotBlank(message = "不能为空")
    private String modelName;

    /** 模具编码 */
    @Excel(name = "模具编码", orderNum = "1")
    @NotBlank(message = "不能为空")
    private String modelCode;

    /** 模具类别 */
    @Excel(name = "模具类别", orderNum = "2")
    @NotBlank(message = "不能为空")
    private String typeId;

    /** 长度 */
    @Excel(name = "长度", orderNum = "3")
    private Integer length = 0;
    /** 宽度 */
    @Excel(name = "宽度", orderNum = "4")
    private Integer width = 0;
    /** 高度 */
    @Excel(name = "高度", orderNum = "5")
    private Integer height = 0;

    /** 预览图 */
    @Excel(name = "预览图", orderNum = "6")
    private String preview;
    /** 小地图 */
    @Excel(name = "小地图", orderNum = "7")
    private String map;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
